const service = require("../service/answer-service");
const { awaitService } = require("../utils/tools");
class answerController {
  async getTest1(ctx, next) {
    const result = service.getTest1(ctx);
    await awaitService();
    ctx.body = result;
  }
  async getTest2(ctx, next) {
    const result = service.getTest2(ctx);
    await awaitService();
    ctx.body = result;
  }
  async getProblem1(ctx, next) {
    const result = service.getProblem1(ctx);
    await awaitService();
    ctx.body = result;
  }
  async getProblem2(ctx, next) {
    const result = service.getProblem2(ctx);
    await awaitService();
    ctx.body = result;
  }
}

module.exports = new answerController();
